
<script src="<?php echo base_url(); ?>commons/js/jquery-1.9.1.js"></script>
<script src="<?php echo base_url(); ?>commons/js/knockout-2.1.0.js"></script>
<script src="<?php echo base_url(); ?>commons/bootstrap/js/bootstrap.min.js"></script>
<script src="<?php echo base_url(); ?>commons/js/jquery-ui.js"></script>

<script>
    var ARNY = (function() {
        var _baseUrl = "<?php echo base_url(); ?>";
        return{
            "language": "<?php echo $this->config->item('language'); ?>",
            "baseUrl": _baseUrl,
            "uri_segment_1": "<?php echo $uri_segment_1; ?>",
            "uri_segment_2": "<?php echo $uri_segment_2; ?>"
        }
    })();


    $(function() {


        $("#datepicker").datepicker();
        $("#datepicker1").datepicker();
        $("#datepicker2").datepicker();
        $("#datepicker3").datepicker();
        $("#datepicker4").datepicker();
        $("#datepicker5").datepicker();
        $("#datepicker6").datepicker();
        $("#datepicker7").datepicker();
        $("#datepicker8").datepicker();
        $("#datepicker9").datepicker();
        $("#datepicker10").datepicker();
        $("#datepicker11").datepicker();
    });

    $(document).ready(function() {
        $('.dropdown-toggle').dropdown();
    });

</script>
<script language="Javascript">
    function enviar(id, dir)
    {
        window.location.href = dir + "/" + id;
    }
    function enviar1(dir, id, id2)
    {
        window.location.href = dir + "/" + id + "/" + id2;
    }
    function enviar2(dir, id, id2, id3)
    {
        window.location.href = dir + "/" + id + "/" + id2 + "/" + id3;
    }
    function enviar3(dir, id, id2, id3, id4)
    {
        window.location.href = dir + "/" + id + "/" + id2 + "/" + id3 + "/" + id4;
    }
    function enviar4(dir, id, id2, id3, id4, id5)
    {
        window.location.href = dir + "/" + id + "/" + id2 + "/" + id3 + "/" + id4 + "/" + id5;
    }
    function modificar(id, dir, opc, id2)
    {
        window.location.href = dir + "/" + opc + "/" + id + "/" + id2;
    }
    function modificar1(id, dir, opc, id2, id3)
    {
        window.location.href = dir + "/" + opc + "/" + id + "/" + id2 + "/" + id3;
    }
    
    function sumaItems()
   {
      //var semestre=Math.round(document.getElementsByTagName("input")[25].value);
      //var recargo =Math.round(document.getElementsByTagName("input")[26].value) ;
      //var pago_inicial=Math.round(document.getElementsByTagName("input")[27].value);
      //var pago_financ=(semestre+recargo)-pago_inicial;
      var semestre=Math.round(document.getElementById("costo_l").value);
      var recargo =Math.round(document.getElementById("rcargo").value) ;
      var pago_inicial=Math.round(document.getElementById("pago_i").value);
      var pago_financ=(semestre+recargo)-pago_inicial;

        document.getElementById("finan1").value=pago_financ;
      alert(pago_financ);
   }

</script>

